import type {ApiResponse} from "../../utils/ApiResponse";
import {Image} from "./types/Image.dto.ts";
import http from "../../utils/http";

export const photoUploadFileAPI = (data: Object): Promise<ApiResponse<Image>> => {
    return http.post("/file/uploadImg", {file: data});
}

// 查看图片
export const photoUploadViewAPI = (data: string) => {
    return  http.get("/file/image", {params: {imageName: data}});
}
